package annimal;

import java.util.Arrays;

public class paly {

	public static void main(String[] args) {
		
	}
public void calculate(){
	int [] x={2,6,5,4,3,22,55,11};
	for(int a=0;a<x.length-1;a++){
		for(int b=0;b<x.length-1-a;b++){
			if(x[b]>x[b+1]){
				int temp;
				temp=x[b];
				x[b]=x[b+1];
				x[b+1]=temp;
				
			}
		}
	}
	System.out.print(Arrays.toString(x));
}
}
